package com.gooluke.common.util;

public class NumberConvertUtils {
    private static final String BASE62 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
    private static final int BASE = BASE62.length();

    public static String convertToStr(long num) {
        StringBuilder sb = new StringBuilder();
        while (num > 0) {
            sb.insert(0, BASE62.charAt((int) (num % BASE)));
            num = num / BASE;
        }
        return sb.toString();
    }
}